// https://umijs.org/config/
import { defineConfig } from 'umi';
export default defineConfig({
  plugins: [
    // https://github.com/zthxxx/react-dev-inspector
    'react-dev-inspector/plugins/umi/react-inspector',
  ],
  // https://github.com/zthxxx/react-dev-inspector#inspector-loader-props
  inspectorConfig: {
    exclude: [],
    babelPlugins: [],
    babelOptions: {},
  },
  

  
  // 根目录
  base: '/portal/',
  publicPath: 'https://xcyunpreview.aidjyun.com/portal/',

  define: {
    APP_TYPE: 'bolepre',
    'process.env.BASE_URL': 'https://djgovtest.iwhalecloud.com/',
    'process.env.MOBILE_BASE_URL': 'https://djgovtest.iwhalecloud.com/mobile',
    'process.env.CAPTCHA': 'https://djgovtest.iwhalecloud.com/boleadmin/captcha.jpg',
    'process.env.OSS_URL': 'https://mlxc-pro.oss-cn-hangzhou.aliyuncs.com',
    'process.env.PROJECT_NAME': 'villageadmin',
    'process.env.WEBSOCKET_URL': 'wss://djgovtest.iwhalecloud.com/boleadmin/'
  },
  // 接口代理
  // proxy: {
  //   '/villageadmin': {
  //     "target": "https://djgovtest.iwhalecloud.com:8088/",
  //     'changeOrigin': true,
  //     'secure': true,
  //     'pathRewrite': { 
  //       '^/villageadmin' : '/villageadmin'
  //     },
  //   }
  // }

});
